package com.web.farme.config;

import lombok.Data;

import javax.sql.DataSource;

@Data
public class Datasource {
    private String entityPackage;

    private String name;

    private String mapperXmlPath;

    private String basePackage;

    private String url;

    private String username;

    private String password;

    private Integer initialSize;

    private Integer maxActive;

    private Integer minIdle = 0;

    private Integer maxWait = 60000;

    private Boolean testOnBorrow = false;

    private Boolean testOnReturn = false;

    private Boolean testWhileIdle = true;

    private Integer timeBetweenEvictionRunsMillis = 60000;

    private Integer minEvictableIdleTimeMillis = 25200000;

    private Boolean logAbandoned = true;
}
